package org.glandais.birt.osgi.oda.impl.beans;

import java.util.ArrayList;
import java.util.List;

import org.glandais.birt.osgi.oda.definition.ResultDefinition;


/**
 * Chemin.
 */
public class Path {

	/** The parent. */
	private Path parent;

	/** The children. */
	private List<Path> children = new ArrayList<Path>();

	/** The name. */
	private String name;

	/** The result definition. */
	private ResultDefinition resultDefinition;

	/** The type. */
	private PathType type;

	/**
	 * Instantiates a new path.
	 * 
	 * @param parent
	 *            the parent
	 * @param resultDefinition
	 *            the result definition
	 */
	public Path(Path parent, ResultDefinition resultDefinition) {
		super();
		this.parent = parent;
		this.resultDefinition = resultDefinition;
	}

	/**
	 * Gets the parent.
	 * 
	 * @return the parent
	 */
	public Path getParent() {
		return parent;
	}

	/**
	 * Gets the children.
	 * 
	 * @return the children
	 */
	public List<Path> getChildren() {
		return children;
	}

	/**
	 * Gets the name.
	 * 
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * Gets the result definition.
	 * 
	 * @return the result definition
	 */
	public ResultDefinition getResultDefinition() {
		return resultDefinition;
	}

	/**
	 * Gets the type.
	 * 
	 * @return the type
	 */
	public PathType getType() {
		return type;
	}

	/**
	 * Sets the name.
	 * 
	 * @param name
	 *            the new name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Sets the type.
	 * 
	 * @param type
	 *            the new type
	 */
	public void setType(PathType type) {
		this.type = type;
	}

}